package com.qianji.petmall.product.feign;

import com.qianji.common.to.es.SkuEsModel;
import com.qianji.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author liang zai
 * @date 2022/2/10 15:05
 * @description
 */
@FeignClient("petmall-search")
public interface SearchFeignService {
    @PostMapping("/search/save")
    R saveProduct(@RequestBody List<SkuEsModel> list);
}
